function passwordcreate(){
    var webSiteName = $("#webSiteName").val();
    var phone = $("#phone").val();
    var password = $("#password").val();
    if(!webSiteName){
        tip("请输入您的网站名称", 2000, 'warning');
        return;
    }
    if(!phone){
        tip("请输入您的用户名(手机)", 2000, 'warning');
        return;
    }
    if(!password){
        tip("请输入您的密码", 2000, 'warning');
        return;
    }
    $("#passwordcreatebtn").text("提交中...");
    $.ajax({
        url:'/pmc/pwdCreate',
        type:'post',
        contentType:"application/json; charset=utf-8",
        data: JSON.stringify({
            webSiteName:webSiteName,
            userName:phone,
            password:password,
            // jwt: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MzI5NjI2ODE1MDYsInBheWxvYWQiOiJcIjE4OTMwMTE0MDIxXCIifQ.pQRpVebRRHeAAzbXi08_h31Uri_fUZIibsSAyUavxGg"
            jwt:localStorage.getItem("jwt")
        }),

        async : true, //默认为true 异步
        dataType: 'json',
        success:function(data){
            $("#passwordcreatebtn").text("提   交");
            if(data.errCode == '0000000'){
                tip('密码实体保存成功！', 2000, 'success');  //设置显示时间
                       setTimeout("this.location.href= 'passwordquery.html'",1000);
            }else{
                tip(data.errorMessage, 2000, 'warning');  //设置显示时间
                if(data.errCode=='1000004'){//如果是jwt失效了，则跳到登录页
                    setTimeout("this.location.href= 'login.html'",1);
                }
            }

        }
    });
}